package cn.sdormitory.school.service;

import cn.sdormitory.common.api.CommonPage;
import cn.sdormitory.school.entity.SchoolDuty;
import cn.sdormitory.smartclass.vo.ClassDvVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

public interface SchoolDutyService {
    IPage<SchoolDuty> getPage(Map<String, Object> params);
    int createOrUpdateSchoolDuty(SchoolDuty schoolDuty);
    int deleteSchoolDuty(Long id);

    /**
     * 导入值班人
     * @param params
     * @return
     */
    List<SchoolDuty> exportDutyList(Map<String, Object> params);

    /**
     * 导出值班人
     * @return
     */
    int importDutyList(SchoolDuty schoolDuty);

    /**
     * 修改值班
     * @param params
     * @return
     */
    int updateDutyUser(Map<String, Object> params);

    /**
     * 删除某月的排班
     * @param params
     * @return
     */
    int deleteOtherMonthDuty(Map<String, Object> params);


}
